<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="copyright" content="Copyright (c) IBM Corporation and others 2011, 2017." >
	<meta http-equiv="Content-Language" content="en-us">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<script src="../orion/Deferred.js"></script>
	<script src="../orion/plugin.js"></script>
	<script src="filePlugin/HTML5LocalFileImpl.js"></script>
	<script type="text/javascript">
	/*eslint-env browser, amd*/
	/*global orion eclipse*/
		window.onload = function() {
			var provider = new orion.PluginProvider();
			window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;
			if (window.requestFileSystem) {
				window.requestFileSystem(window.TEMPORARY, 10*1024*1024 , function(fs) {
					var base = fs.root.toURL();
					var service = new eclipse.HTML5LocalFileServiceImpl(fs);
					provider.registerService("orion.core.file", service, {Name:'HTML5 Local File contents', top:base, pattern:base});
					provider.connect();
				}, function(error) {
					console.log(error);
					provider.connect();
				});
			} else {
				provider.connect();
			}
		};
	</script>
</head>
<body>
<h1>HTML5 local file system plugin for Orion</h1>

<p>This is a plugin for <a href="http://wiki.eclipse.org/Orion/">Orion</a>. It is not meant to be viewed in a browser.</p>

<p>This plugin enables you to use Orion to work with files and folders in an 
<a href="http://dev.w3.org/2009/dap/file-system/pub/FileSystem/">HTML5 file system</a>. These files are stored on your
local computer, in a sandbox location managed by your browser. To install this plugin, follow 
<a href="http://wiki.eclipse.org/Orion/How_Tos/Installing_A_Plugin">these instructions</a> using 
the URL in the address bar of this page. Once installed, a &quot;HTML5 Local File contents&quot; link will appear on the left
hand side of the Navigator. Click this link to begin browsing and editing local files.
</p>

<p><em>Requires Orion 0.5. This plugin only works using <a href="https://www.google.com/chrome">Google Chrome</a>.</em></p>
</body>
</html>
